﻿package ua.mihaylenko.canvas.gui.photoshop.scrollbar
{
	import flash.events.Event;
	
	/**
	 * ...
	 * @author Mihaylenko A.L.
	 */
	public class ScrollBarEvent extends Event 
	{
		public static const CHANGE_SCROLL_POSITION:String = 'ShangeScrollPositionScrollBarEvent';
		public function ScrollBarEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false) 
		{ 
			super(type, bubbles, cancelable);
			
		} 
		public function get position():int {
			return target.scrollPosition;
		}
		public override function clone():Event 
		{ 
			return new ScrollBarEvent(type, bubbles, cancelable);
		} 
		
		public override function toString():String 
		{ 
			return formatToString("ScrollBarEvent", "type", "bubbles", "cancelable", "eventPhase"); 
		}
		
	}
	
}